<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>银行家用户管理</a></li>
			<li class="active"><strong>用户详情</strong></li>
		</ol>
	</div>
</div>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-controller="userInfoDetailCtrl">
	<form class="form-horizontal" name="horizontal" novalidate>
		<div class="form-group">
			<div class="row">
				<div class="col-lg-12">
					<div class="tabs-container tab_other">
						<uib-tabset>
							<uib-tab> 
								<uib-tab-heading>
									<span class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong
										class="font-bold">基本信息</strong>
									</span> 
								</uib-tab-heading>
								<div class="ibox-title">
									<h5>基本信息</h5>
								</div>
								<div class="panel-body ibox float-e-margins">
									<div class="form-group">
										<label class="col-sm-1 control-label" >所属组织：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.orgName"></p></div>
										<label class="col-sm-1 control-label" >总收益：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.totalProfit"></p></div>
										<label class="col-sm-1 control-label" >用户编号：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.userCode"></p></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label">用户节点：</label>
										<div class="col-sm-2 checkbox" ng-bind="baseInfo.userNode"></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label" >昵称：</label>
										<div class="col-sm-2 checkbox wbba"><p ng-bind="baseInfo.nickName"></p></div>
										<label class="col-sm-1 control-label" >微信号：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.weixinCode"></p></div>
										<label class="col-sm-1 control-label" >手机号：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.phone"></p></div>
										<label class="col-sm-1 control-label" >姓名：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.userName"></p></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label" >代理状态：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.statusAgent"></p></div>
										<label class="col-sm-1 control-label" >身份：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.userType"></p></div>
										<label class="col-sm-1 control-label" >退款状态：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.payBackStr"></p></div>
										<label class="col-sm-1 control-label" >优秀导师：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.statusMentorName"></p></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label" >一级ID：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topOneCode"></p></div>
										<label class="col-sm-1 control-label" >一级名称：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topOneUserName"></p></div>
										<label class="col-sm-1 control-label" >一级身份：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topOneUserType"></p></div>
										<label class="col-sm-1 control-label" >一级昵称：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topOneNickName"></p></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label" >二级ID：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topTwoCode"></p></div>
										<label class="col-sm-1 control-label" >二级名称：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topTwoUserName"></p></div>
										<label class="col-sm-1 control-label" >二级身份：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topTwoUserType"></p></div>
										<label class="col-sm-1 control-label" >二级昵称：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topTwoNickName"></p></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label" >三级ID：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topThreeCode"></p></div>
										<label class="col-sm-1 control-label" >三级名称：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topThreeUserName"></p></div>
										<label class="col-sm-1 control-label" >三级身份：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topThreeUserType"></p></div>
										<label class="col-sm-1 control-label" >三级昵称：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.topThreeNickName"></p></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label" >直接下级代理数量：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.subAgentCount"></p></div>
										<label class="col-sm-1 control-label" >直营用户数量：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.subUserCount"></p></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label" >入驻时间：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.createDateStr"></p></div>
										<label class="col-sm-1 control-label" >成为专员时间：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.toagentDateStr"></p></div>
										<label class="col-sm-1 control-label" >成为经理时间：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.toManagerDateStr"></p></div>
										<label class="col-sm-1 control-label" >成为银行家时间：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="baseInfo.toBankerDateStr"></p></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label">用户常驻地址：</label>
										<div class="col-sm-2 checkbox">
											{{baseInfo.openProvince}}{{baseInfo.openCity}}{{baseInfo.openRegion}}
										</div>
										<label class="col-sm-1 control-label">用户备注：</label>
										<div class="col-sm-2 checkbox" ng-bind="baseInfo.remark">
										</div>
										<label class="col-sm-1 control-label">是否外放：</label>
										<div class="col-sm-2 checkbox" ng-bind="baseInfo.isOpen">
										</div>
									</div>
									<!-- 
									<div class="form-group">
										<label class="col-sm-1 control-label">用户节点：</label>
										<div class="col-sm-2 checkbox" ng-bind="baseInfo.userNode"></div>
									</div>
									 -->
									<div class="form-group">
										<label class="col-sm-1 control-label" >微信头像：</label>
										<div class="col-sm-5 checkbox" >
											<a href="{{baseInfo.userLogoUrl}}" ng-show="baseInfo.userLogoUrl != null&&baseInfo.userLogoUrl != ''" fancybox  rel="group">
												<img width="250px" height="150px" ng-src="{{baseInfo.userLogoUrl}}"/>
											</a>
										</div>
										<label class="col-sm-1 control-label" >微信二维码：</label>
										<div class="col-sm-5 checkbox" >
											<a href="{{baseInfo.qrCodeUrl}}" ng-show="baseInfo.qrCodeUrl != null&&baseInfo.qrCodeUrl != ''" fancybox  rel="group">
												<img width="250px" height="150px" ng-src="{{baseInfo.qrCodeUrl}}"/>
											</a>
										</div>
									</div>
								</div>
								<div class="ibox-title">
									<h5>结算信息</h5>
								</div>
								<div class="panel-body ibox float-e-margins">
									<div class="form-group">
										<label class="col-sm-1 control-label" >姓名：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="userCard.accountName"></p></div>
										<label class="col-sm-1 control-label" >身份证号：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="userCard.accountIdNo"></p></div>
										<label class="col-sm-1 control-label" >手机号：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="userCard.accountPhone"></p></div>
										<label class="col-sm-1 control-label" >银行卡号：</label>
										<div class="col-sm-2 checkbox"><p ng-bind="userCard.cardNo"></p></div>
									</div>
									<div class="form-group">
										<label class="col-sm-1 control-label" >银行卡正面：</label>
										<div class="col-sm-5 checkbox">
											<a href="{{userCard.positivePhotoUrl}}" ng-show="userCard != null&&userCard.positivePhotoUrl != null&&userCard.positivePhotoUrl != ''" fancybox  rel="group">
												<img width="250px" height="150px" ng-src="{{userCard.positivePhotoUrl}}"/>
											</a>
										</div>
									</div>
								</div>
								<div class="ibox-title">
									<h5>收款业务</h5>
								</div>
								<div class="panel-body ibox float-e-margins">
									<div class="form-group">
										<label class="col-sm-1 control-label" >收款状态：</label>
										<div class="col-sm-1 checkbox"><p ng-bind="baseInfo.statusReceive"></p></div>
										<label class="col-sm-1 control-label" ></label>
										<a class="col-sm-1 checkbox" ng-show="baseInfo.statusReceive=='已开通'" target="_blank" href="#/merchant/queryMerDetail/{{baseInfo.itemId}}">点击跳转</a>
									</div>
								</div>
								<div class="ibox-title">
									<h5>还款业务</h5>
								</div>
								<div class="panel-body ibox float-e-margins">
									<div class="form-group">
										<label class="col-sm-1 control-label" >还款状态：</label>
										<div class="col-sm-1 checkbox"><p ng-bind="baseInfo.statusRepayment"></p></div>
										<label class="col-sm-1 control-label" ></label>
										<a class="col-sm-1 checkbox" ng-show="baseInfo.statusRepayment=='已开通'" target="_blank" href="#/creditRepay/userDetail/{{baseInfo.repaymentUserNo}}">点击跳转</a>
									</div>
								</div>
							</uib-tab>
							<uib-tab>
								<uib-tab-heading>
									<span class="block m-t-xs">
										<i class="fa fa-desktop"></i>
										<strong class="font-bold">账户资料</strong>
									</span>
								</uib-tab-heading>
								<div class="panel-body ibox float-e-margins">
									<div class="ibox-title">
										<h5>账户余额</h5>
									</div>
									<div class="ibox-content">
										<div class="form-group">
											<div class="gridStyle" style="height: 200px;" ui-grid="accountBalances" ui-grid-resize-columns/>
										</div>
									</div>
								</div>
								<div class="panel-body ibox float-e-margins">
									<div class="ibox-title">
										<h5>账户明细</h5>
									</div>
									<div class="panel-body ibox float-e-margins">
										<div class="form-group">
											<label  class="col-sm-1 control-label">操作：</label>
											<div class="col-sm-3">
												<select class="form-control" ng-model="accountInfoRecord.debitCreditSide" ng-options="x.value as x.text for x in debitCreditSideList"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-1 control-label">交易时间：</label>
											<div class="col-sm-6">
												<input id="d5221" class="form-control" type="datetime" ng-model="accountInfoRecord.recordTimeStart"
													   onchange="" style="width:auto;display:inline-block;"
													   onFocus="var d5222=$dp.$('d5222');WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')}'})"/>
												~
												<input id="d5222" class="form-control" type="datetime" ng-model="accountInfoRecord.recordTimeEnd"
													   onchange="" style="width:auto;display:inline-block;"
													   onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'d5221\')}'})"/>
											</div>
										</div>
										<div class="form-group">
											<div class="col-lg-12">
												<label class="col-sm-1 control-label"></label>
												<button class="btn btn-primary6 btn-mr20" type="button" ng-disabled="submitting" ng-click="getUserAccountDetail()">查询</button>
		                                        <button class="btn btn-primary3" type="button" ng-click="clear()">清空</button>
											</div>
										</div>
									<div class="ibox-content">
										<div class="form-group">
											<div class="gridStyle " style="height: 400px;" ui-grid="accountDetail" ui-grid-pagination ui-grid-resize-columns/>
											<div ng-show="loadImg" class="timg"></div>
										</div>
									</div>
								</div>
								</div>
							</uib-tab>
							<uib-tab select="getUserFreezeOperLog()">
								<uib-tab-heading>
									<span class="block m-t-xs">
										<i class="fa fa-desktop"></i>
										<strong class="font-bold">冻结解冻记录</strong>
									</span>
								</uib-tab-heading>
								<div class="panel-body ibox float-e-margins">
									<div class="ibox-title">
										<h5>冻结解冻记录</h5>
									</div>
									<div class="panel-body ibox float-e-margins">
										<div class="ibox-content">
											<div class="form-group">
												<div class="gridStyle " style="height: 400px;" ui-grid="userFreezeOperLog" ui-grid-pagination ui-grid-resize-columns ui-grid-pinning/>
												<div ng-show="loadImg" class="timg"></div>
											</div>
										</div>
								    </div>
								</div>
							</uib-tab>
						</uib-tabset>
					</div>
				</div>
			</div>
			<div class="col-lg-12 bgff">
				<div class="col-sm-12">
					<div class="col-sm-2"></div>
					<div class="col-sm-6">
						<div style="padding: 0 15px;">
							<button class="btn btn-primary4 btn-mr20" ui-sref="superBank.userManage" type="button">返回</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div style="height:50px"></div>
	</form>
</div>